<div ng-controller="GetfaultlistCtrl">
<div class="panel panel-default">

 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">
 		<div class="nav navbar-nav m-t"> 				            
            <span><b>工单管理</b></span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>故障工单</b> </span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>工单列表</b></span> 
         </div>
        <!-- nabar right -->
        <ul class="nav navbar-nav navbar-right" ng-controller="SigninFormController">          
          <li class="dropdown" dropdown>
            <a href class="dropdown-toggle clear" dropdown-toggle>
              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                <img src="img/a0.jpg" alt="...">
                <i class="on md b-white bottom"></i>
              </span>
              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
            </a>
            <!-- dropdown -->
            <ul class="dropdown-menu animated fadeInRight w">  
              <li>
                <a ui-sref="app.user.info">用户信息</a>
              </li>       
              <li class="divider"></li>
              <li>
                <a ui-sref="access.signin" ng-click="logout()">登出</a>
              </li>
            </ul>
            <!-- / dropdown -->
          </li>
        </ul>
 	</div>
</div>
<div class="panel panel-default m-t-n-md">
  <div class="panel-body">
    <div class="pull-right">
      <a class="btn btn-sm btn-rounded btn-info" ui-sref="app.order.newfault">
         新增
          </a>
    </div>
  	<table class="table">
  		<thead>
  			<tr>
  				<th>工单编号</th>
  				<th>设备编号</th>
  				<th>设备名称</th>
  				<th>报警时间</th>
  				<th>报警类型</th>
  				<th>报警状态</th>
  				<th>工单状态</th>
  				<th>操作</th>
  			</tr>
  		</thead>
  		<tbody>
  			<tr ng-repeat="aaData in aaData">
  				<td>
				<a  style="color: rgb(22,144,232);">{{aaData.breakdown_id}}</a>
  				</td>
  				<td>
  					<a  style="color: rgb(22,144,232);">{{aaData.equipment_id}}</a>
  				</td>
  				<td>{{aaData.equipment_name}}</td>
  				<td>{{aaData.alarm_time}}</td>
  				<td>{{aaData.alarm_type}}</td>
  				<td>
  					<a style="margin-right:5px;color:#56abe4" ><i class="icon iconfont icon-yijie" ></i></a>
        		<!-- <a style="margin-right:5px;color:gray"><i class="icon iconfont icon-yijie"></i></a> -->
        		<a style="margin-right:5px;color:#56abe4" ><i class="icon iconfont icon-shuniu1" ></i></a>
        		<!-- <a style="margin-right:5px;color:orange" ><i class="icon iconfont icon-shuniu1" ></i></a>
        		<a style="margin-right:5px;color:gray"><i class="icon iconfont icon-shuniu1"></i></a> -->
        		<a style="color:#56abe4"><i class="icon iconfont icon-yiqueren"></i></a>
        		<!-- <a style="color:gray"><i class="icon iconfont icon-yiqueren" ></i></a> -->
  				</td>
  				<td>{{aaData.type}}</td>
  				<td>
  					<a style="margin-right:5px;color:#56abe4;" ui-sref="app.order.jiejing({oid:aaData.breakdown_id})">
              <i class="icon iconfont icon-jiejing"  style="font-size:18px">                
              </i>
            </a>

            <a style="margin-right:5px;color:#56abe4;" ui-sref="app.order.wangong({oid:aaData.breakdown_id})">
              <i class="icon iconfont icon-jie" style="margin-right:5px;font-size:18px" ></i>
            </a>

            <a ui-sref="app.order.queren({oid:aaData.breakdown_id})"><i class="icon iconfont icon-wancheng" style="margin-right:5px;color:#56abe4;font-size:18px" ></i></a> 

            <a><i class="icon iconfont icon-quxiao" style="margin-right:5px;color:gray;font-size:18px"></i></a>

            <a ng-controller="DelFaultModalCtrl">
              <script type="text/ng-template" id="delfaultModalContent.html">
	             <div ng-include="'tpl/order/fault/delmodal.html'"></div>
	            </script> 
              <span  class="icon iconfont icon-shanchu" style="margin-right:5px;color:#eb4f38;font-size:18px"  ng-click="open()">
              </span>   
		        </a>


  				</td>
  			</tr>
  		</tbody>
  	</table>
  	<div style="text-align: center;">
			<pagination boundary-links="false" total-items="totalItems"
		        ng-model="currentPage" class="pagination-sm embed-responsive-item"
		        previous-text="上一页"
		        next-text="下一页"
		        first-text="首页"
		        last-text="尾页"
		        max-size="maxSize"
		        rotate="false" num-pages="numPages" ng-change="pageChanged()">
		    </pagination>		   
	</div>	
  </div>
</div>
</div>